package com.gph.saviorframework.wf.dao;

import com.gph.saviorframework.base.dao.BaseDao;
import com.gph.saviorframework.wf.model.ActivitiDefConfig;
import org.apache.ibatis.annotations.Param;
import org.aspectj.lang.annotation.Aspect;

import java.util.List;

@Aspect
public interface ActivitiDefConfigDao extends BaseDao<ActivitiDefConfig,String> {

    /**
     * 通过流程定义获取配置信息
     * @param defId
     * @return
     */
    List<ActivitiDefConfig> getByDefId(@Param(value = "defId")String defId);

    /**
     * 根据流程定义编号和任务编号获取流程配置信息
     * @param defId
     * @param taskId
     * @return
     */
    ActivitiDefConfig getByDefIdAndTaskId(@Param(value = "defId")String defId,
                                          @Param(value = "taskId")String taskId);

    /**
     * 根据defId删除
     * @param defId
     */
    void deleteByDefId(@Param(value = "defId")String defId);
}
